package cur.nature.admin.model.vo;

import cur.nature.framework.mvc.base.BaseVO;
import cur.nature.framework.mvc.http.RequestObject;
import cur.nature.framework.mvc.http.ResponseObject;
import cur.nature.framework.mvc.tree.TreeNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 资源管理表 VO
 * 作者：Auto Generate By wujian
 * 生成日期：2023-07-09 18:12:24
 */
@Data
@Schema(description = "资源管理 模型", name = "Admin_ResourceVO")
public class Admin_ResourceVO extends BaseVO{
    @Schema(description = "父类id")
    private String  parentId;

    @Schema(description = "资源代码")
    private String  code;

    @Schema(description = "资源名称: 部门管理")
    private String  name;

    @Schema(description = "资源类型: menu-菜单,res-资源")
    private String  type;

    @Schema(description = "资源路径:/system/dept")
    private String  path;

    @Schema(description = "组件路径: /@/views/system/dept/index.vue")
    private String  compPath;

    @Schema(description = "状态: 0-停用，1-启用")
    private Integer  state;

    @Schema(description = "图标url")
    private String  image;

    @Schema(description = "排序")
    private Integer  sort;


    @Data
    @Schema(description = "列表查询参数", name = "Admin_ResourceVO.list_Param")
    public static class list_Param extends RequestObject {
        @Schema(description = "关键字")
        private String keyword;
        private String roleId;
        private String nodeText;
    }

    @Data
    @Schema(description = "列表查询参数")
    public static class list_Result {
        @Schema(description = "树数据")
        private TreeNode treeNode;
        private List<String> checkNodeIdList;
        private List<String> expandNodeIdList;
    }
}